package com.butterfly.hotkey.common.disruptor;

import com.lmax.disruptor.dsl.Disruptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * disruptor配置信息
 *
 * @author butterfly
 */
@ConfigurationProperties(prefix = "hotkey.disruptor")
@ConditionalOnClass(Disruptor.class)
public class DisruptorProperties {

    /**
     * disruptor的buffer大小
     */
    private int bufferSize = 2048;

    public int getBufferSize() {
        return bufferSize;
    }

    public void setBufferSize(int bufferSize) {
        this.bufferSize = bufferSize;
    }
}